home *** CD-ROM | disk | FTP | other *** search
- <refentry id="libgimp-gimpdialog" revision="19 Jan 2001">
- <refmeta>
- <refentrytitle>gimpdialog</refentrytitle>
- <manvolnum>3</manvolnum>
- <refmiscinfo>LIBGIMP Library</refmiscinfo>
- </refmeta>
-
- <refnamediv>
- <refname>gimpdialog</refname><refpurpose>Constructors for <link linkend="GtkDialog">GtkDialog</link>'s and action_areas as well as other
- dialog-related stuff.</refpurpose>
- </refnamediv>
-
- <refsynopsisdiv><title>Synopsis</title>
- <synopsis>
-
-
-
- <link linkend="GtkWidget">GtkWidget</link>* <link linkend="gimp-dialog-new">gimp_dialog_new</link> (const <link linkend="gchar">gchar</link> *title,
- const <link linkend="gchar">gchar</link> *wmclass_name,
- <link linkend="GimpHelpFunc">GimpHelpFunc</link> help_func,
- const <link linkend="gchar">gchar</link> *help_data,
- <link linkend="GtkWindowPosition">GtkWindowPosition</link> position,
- <link linkend="gint">gint</link> allow_shrink,
- <link linkend="gint">gint</link> allow_grow,
- <link linkend="gint">gint</link> auto_shrink,
- ...);
- <link linkend="GtkWidget">GtkWidget</link>* <link linkend="gimp-dialog-newv">gimp_dialog_newv</link> (const <link linkend="gchar">gchar</link> *title,
- const <link linkend="gchar">gchar</link> *wmclass_name,
- <link linkend="GimpHelpFunc">GimpHelpFunc</link> help_func,
- const <link linkend="gchar">gchar</link> *help_data,
- <link linkend="GtkWindowPosition">GtkWindowPosition</link> position,
- <link linkend="gint">gint</link> allow_shrink,
- <link linkend="gint">gint</link> allow_grow,
- <link linkend="gint">gint</link> auto_shrink,
- va_list args);
- void <link linkend="gimp-dialog-set-icon">gimp_dialog_set_icon</link> (<link linkend="GtkWindow">GtkWindow</link> *dialog);
- void <link linkend="gimp-dialog-create-action-area">gimp_dialog_create_action_area</link> (<link linkend="GtkDialog">GtkDialog</link> *dialog,
- ...);
- void <link linkend="gimp-dialog-create-action-areav">gimp_dialog_create_action_areav</link> (<link linkend="GtkDialog">GtkDialog</link> *dialog,
- va_list args);
- </synopsis>
- </refsynopsisdiv>
-
-
-
-
-
- <refsect1>
- <title>Description</title>
- <para>
-
- </para>
- </refsect1>
-
- <refsect1>
- <title>Details</title>
- <refsect2>
- <title><anchor id="gimp-dialog-new">gimp_dialog_new ()</title>
- <programlisting><link linkend="GtkWidget">GtkWidget</link>* gimp_dialog_new (const <link linkend="gchar">gchar</link> *title,
- const <link linkend="gchar">gchar</link> *wmclass_name,
- <link linkend="GimpHelpFunc">GimpHelpFunc</link> help_func,
- const <link linkend="gchar">gchar</link> *help_data,
- <link linkend="GtkWindowPosition">GtkWindowPosition</link> position,
- <link linkend="gint">gint</link> allow_shrink,
- <link linkend="gint">gint</link> allow_grow,
- <link linkend="gint">gint</link> auto_shrink,
- ...);</programlisting>
- <para>
- This function simply packs the action_area arguments passed in "..."
- into a <parameter>va_list</parameter> variable and passes everything to <link linkend="gimp-dialog-newv">gimp_dialog_newv</link>().
- </para>
- <para>
- For a description of the format of the <parameter>va_list</parameter> describing the
- action_area buttons see <link linkend="gimp-dialog-create-action-areav">gimp_dialog_create_action_areav</link>().</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>title</parameter> :</entry>
- <entry> The dialog's title which will be set with <link linkend="gtk-window-set-title">gtk_window_set_title</link>().
- </entry></row>
- <row><entry align="right"><parameter>wmclass_name</parameter> :</entry>
- <entry> The dialog's <parameter>wmclass_name</parameter> which will be set with
- <link linkend="gtk-window-set-wmclass">gtk_window_set_wmclass</link>(). The <parameter>wmclass_class</parameter> will be
- automatically set to "Gimp".
- </entry></row>
- <row><entry align="right"><parameter>help_func</parameter> :</entry>
- <entry> The function which will be called if the user presses "F1".
- </entry></row>
- <row><entry align="right"><parameter>help_data</parameter> :</entry>
- <entry> The data pointer which will be passed to <parameter>help_func</parameter>.
- </entry></row>
- <row><entry align="right"><parameter>position</parameter> :</entry>
- <entry> The dialog's initial position which will be set with
- <link linkend="gtk-window-set-position">gtk_window_set_position</link>().
- </entry></row>
- <row><entry align="right"><parameter>allow_shrink</parameter> :</entry>
- <entry> The dialog's <parameter>allow_shrink</parameter> flag, ...
- </entry></row>
- <row><entry align="right"><parameter>allow_grow</parameter> :</entry>
- <entry> ... it't <parameter>allow_grow</parameter> flag and ...
- </entry></row>
- <row><entry align="right"><parameter>auto_shrink</parameter> :</entry>
- <entry> ... it's <parameter>auto_shrink</parameter> flag which will all be set with
- <link linkend="gtk-window-set-policy">gtk_window_set_policy</link>().
- </entry></row>
- <row><entry align="right"><parameter>...</parameter> :</entry>
- <entry> A <link linkend="NULL-CAPS">NULL</link> terminated <parameter>va_list</parameter> destribing the action_area buttons.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> A <link linkend="GtkDialog">GtkDialog</link>.
-
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-dialog-newv">gimp_dialog_newv ()</title>
- <programlisting><link linkend="GtkWidget">GtkWidget</link>* gimp_dialog_newv (const <link linkend="gchar">gchar</link> *title,
- const <link linkend="gchar">gchar</link> *wmclass_name,
- <link linkend="GimpHelpFunc">GimpHelpFunc</link> help_func,
- const <link linkend="gchar">gchar</link> *help_data,
- <link linkend="GtkWindowPosition">GtkWindowPosition</link> position,
- <link linkend="gint">gint</link> allow_shrink,
- <link linkend="gint">gint</link> allow_grow,
- <link linkend="gint">gint</link> auto_shrink,
- va_list args);</programlisting>
- <para>
- This function performs all neccessary setps to set up a standard GIMP
- dialog.
- </para>
- <para>
- The <parameter>va_list</parameter> describing the action_area buttons will be passed to
- <link linkend="gimp-dialog-create-action-areav">gimp_dialog_create_action_areav</link>().</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>title</parameter> :</entry>
- <entry> The dialog's title which will be set with <link linkend="gtk-window-set-title">gtk_window_set_title</link>().
- </entry></row>
- <row><entry align="right"><parameter>wmclass_name</parameter> :</entry>
- <entry> The dialog's <parameter>wmclass_name</parameter> which will be set with
- <link linkend="gtk-window-set-wmclass">gtk_window_set_wmclass</link>(). The <parameter>wmclass_class</parameter> will be
- automatically set to "Gimp".
- </entry></row>
- <row><entry align="right"><parameter>help_func</parameter> :</entry>
- <entry> The function which will be called if the user presses "F1".
- </entry></row>
- <row><entry align="right"><parameter>help_data</parameter> :</entry>
- <entry> The data pointer which will be passed to <parameter>help_func</parameter>.
- </entry></row>
- <row><entry align="right"><parameter>position</parameter> :</entry>
- <entry> The dialog's initial position which will be set with
- <link linkend="gtk-window-set-position">gtk_window_set_position</link>().
- </entry></row>
- <row><entry align="right"><parameter>allow_shrink</parameter> :</entry>
- <entry> The dialog's <parameter>allow_shrink</parameter> flag, ...
- </entry></row>
- <row><entry align="right"><parameter>allow_grow</parameter> :</entry>
- <entry> ... it't <parameter>allow_grow</parameter> flag and ...
- </entry></row>
- <row><entry align="right"><parameter>auto_shrink</parameter> :</entry>
- <entry> ... it's <parameter>auto_shrink</parameter> flag which will all be set with
- <link linkend="gtk-window-set-policy">gtk_window_set_policy</link>().
- </entry></row>
- <row><entry align="right"><parameter>args</parameter> :</entry>
- <entry> A <parameter>va_list</parameter> as obtained with <link linkend="va-start">va_start</link>() describing the action_area
- buttons.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> A <link linkend="GtkDialog">GtkDialog</link>.
-
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-dialog-set-icon">gimp_dialog_set_icon ()</title>
- <programlisting>void gimp_dialog_set_icon (<link linkend="GtkWindow">GtkWindow</link> *dialog);</programlisting>
- <para>
- This function sets the WM pixmap icon for the dialog which will appear
- e.g. in GNOME's or KDE's window list.
- </para>
- <para>
- Note that this function is automatically called by
- <link linkend="gimp-help-connect-help-accel">gimp_help_connect_help_accel</link>() which in turn is called by
- <link linkend="gimp-dialog-newv">gimp_dialog_newv</link>(), so you only have to call it for <link linkend="GtkWindow">GtkWindow</link>'s which
- have no help page (like tear-off menus).</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>dialog</parameter> :</entry>
- <entry> The <link linkend="GtkWindow">GtkWindow</link> you want to set the pixmap icon for.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-dialog-create-action-area">gimp_dialog_create_action_area ()</title>
- <programlisting>void gimp_dialog_create_action_area (<link linkend="GtkDialog">GtkDialog</link> *dialog,
- ...);</programlisting>
- <para>
- This function simply packs the action_area arguments passed in "..."
- into a <parameter>va_list</parameter> variable and passes everything to
- <link linkend="gimp-dialog-create-action-areav">gimp_dialog_create_action_areav</link>().</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>dialog</parameter> :</entry>
- <entry> The <link linkend="GtkDialog">GtkDialog</link> you want to create the action_area for.
- </entry></row>
- <row><entry align="right"><parameter>...</parameter> :</entry>
- <entry> A <link linkend="NULL-CAPS">NULL</link> terminated <parameter>va_list</parameter> destribing the action_area buttons.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-dialog-create-action-areav">gimp_dialog_create_action_areav ()</title>
- <programlisting>void gimp_dialog_create_action_areav (<link linkend="GtkDialog">GtkDialog</link> *dialog,
- va_list args);</programlisting>
- <para>
- </para>
- <para>
-
- The <parameter>va_list</parameter> describing the action_area <link linkend="GtkButton">GtkButton</link>'s has the following format:
-
- <informaltable pgwide=1 frame="none" role="struct">
- <tgroup cols="2"><colspec colwidth="4*"><colspec colwidth="8*">
- <tbody>
-
- <row>
- <entry><link linkend="gchar">gchar</link> *label,</entry>
- <entry>The button's label.</entry>
- </row>
-
- <row>
- <entry><link linkend="GtkSignalFunc">GtkSignalFunc</link> callback,</entry>
- <entry>The callback which will be connected to the button's
- "clicked" signal</entry>
- </row>
-
- <row>
- <entry><link linkend="gpointer">gpointer</link> data,</entry>
- <entry>The callback data which will be used in
- <link linkend="gtk-signal-connect">gtk_signal_connect</link>(). If you pass <link linkend="NULL-CAPS">NULL</link>, then the dialog itself will
- by passed as <parameter>data</parameter>.</entry>
- </row>
-
- <row>
- <entry><link linkend="GtkObject">GtkObject</link> *slot_object,</entry>
- <entry>If you pass a pointer other than <link linkend="NULL-CAPS">NULL</link>, then the button's "clicked"
- signal will be connected with <link linkend="gtk-signal-connect-object">gtk_signal_connect_object</link>() instead of
- <link linkend="gtk-signal-connect">gtk_signal_connect</link>(). If you want the dialog itself to be the
- <parameter>slot_object</parameter>, pass "1".</entry>
- </row>
-
- <row>
- <entry><link linkend="GtkWidget">GtkWidget</link> **widget_ptr,</entry>
- <entry>A pointer to store the created button in.</entry>
- </row>
-
- <row>
- <entry><link linkend="gboolean">gboolean</link> default_action,</entry>
- <entry><link linkend="TRUE-CAPS">TRUE</link> if this button should grab the default dialog action with
- <link linkend="gtk-widget-grab-default">gtk_widget_grab_default</link>().</entry>
- </row>
-
- <row>
- <entry><link linkend="gboolean">gboolean</link> connect_delete,</entry>
- <entry><link linkend="TRUE-CAPS">TRUE</link> if the dialog's "delete_event" should be connected to
- this button's callback. Usually you will connect to the dialog's
- "Cancel" callback. Note that the callback will be called indirectly,
- so you don't have to worry about the <link linkend="GdkEvent">GdkEvent</link> pointer which comes
- with the "delete_event", as it will be stripped away before your
- "Cancel" callback is called.</entry>
- </row>
-
- </tbody></tgroup></informaltable>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>dialog</parameter> :</entry>
- <entry> The <link linkend="GtkDialog">GtkDialog</link> you want to create the action_area for.
- </entry></row>
- <row><entry align="right"><parameter>args</parameter> :</entry>
- <entry> A <parameter>va_list</parameter> as obtained with <link linkend="va-start">va_start</link>() describing the action_area
- buttons.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
-
- </refsect1>
-
-
-
-
- </refentry>
-